Filter hook 'render_block_{$this->name}'
in WP Core File wp-includes/class-wp-block.php at line 581
Description
Filters the content of a single block. The dynamic portion of the hook name, `$name`, refers to the block name, e.g. "core/paragraph".
Occurrences
Filename |
Line Number |
wp-includes/class-wp-block.php |
581 |
Parameters
Type |
Name |
Description |
string |
$block_content |
The block content. |
array |
$block |
The full block, including name and attributes. |
WP_Block |
$instance |
The block instance. |
PHP Doc
/**
* Filters the content of a single block.
*
* The dynamic portion of the hook name, `$name`, refers to
* the block name, e.g. "core/paragraph".
*
* @since 5.7.0
* @since 5.9.0 The `$instance` parameter was added.
*
* @param string $block_content The block content.
* @param array $block The full block, including name and attributes.
* @param WP_Block $instance The block instance.
*/